package com.toocms.jinjuhang.ui.main

import android.os.Bundle
import com.blankj.utilcode.util.BarUtils
import com.qmuiteam.qmui.arch.annotation.DefaultFirstFragment
import com.toocms.tab.base.BaseActivity

@DefaultFirstFragment(MainFgt::class)
class MainAty : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        BarUtils.setStatusBarLightMode(this, true)
//        // 浮窗
//        val live: View = layoutInflater.inflate(R.layout.float_live, null)
//        live.findViewById<View>(R.id.close).setOnClickListener {
//            EasyFloat.dismiss()
//        }
//        live.findViewById<View>(R.id.live).setOnClickListener {
//            EasyFloat.dismiss()
//            ThreadUtils.runOnUiThreadDelayed({
//                val intent = Intent(this@MainAty, MainAty::class.java)
//                val bundle = Bundle();
//                bundle.putBoolean("isLive", true)
//                intent.putExtra(QMUI_INTENT_FRAGMENT_ARG, bundle)
//                ActivityUtils.startActivity(intent)
//                finish()
//            }, 350)
//        }
//        EasyFloat.with(this@MainAty)
//            .setLayout(live)
//            .setSidePattern(SidePattern.RESULT_HORIZONTAL)
//            .setGravity(Gravity.BOTTOM or Gravity.END, 0, ConvertUtils.dp2px(-200f))
//            .show()
    }
}